@using Microsoft.AspNetCore.Identity
@using WebApplication8.Data
@inject SignInManager<ApplicationUser> SignInManager
@inject UserManager<ApplicationUser> UserManager

@if (SignInManager.IsSignedIn(User))
{
  <li class="nav-item">
    <a class="nav-link text-dark" href="/app/">App</a>
  </li>
} 
